#include <iostream>

using std::cout;
using std::endl;

//命名空间是可以进行嵌套的
//访问的时候：就一层一层的引出来即可
namespace wd
{

int number = 10;

namespace lili
{
int number = 20;

void print()
{
    cout << "void print()" << endl;
}

}//end of namespace lili

}//end of namespace wd

int main(int argc, char *argv[])
{
    cout << "wd中的number = " << wd::number << endl;
    cout << "lili中的number = " << wd::lili::number << endl;
    wd::lili::print();
    return 0;
}

